/* 
 * File:   StepGroup.cpp
 * Author: root
 * 
 * Created on October 30, 2015, 5:49 AM
 */

#include "pedometer.h"
#include "algorithm"

StepGroup::StepGroup() {
	this->a = 0;
	this->b = 0;
	this->c = 0;
	this->d = 0;
	this->e = 0;
}

StepGroup::StepGroup(const StepGroup& orig) {
	this->a = orig.a;
	this->b = orig.b;
	this->c = orig.c;
	this->d = orig.d;
	this->e = orig.e;
}


StepGroup::~StepGroup()
{

//  while (this->a != this->b) 
//  {
//      delete *this->a;
//      this->a++;
//  }
//
//  ~vector(this);
}

StepGroup::StepGroup(const StepGroup& orig, StepGroup& a3, int &a4)
{
  int tempSize, tempData;
  StepGroup * ptr = 0;

  tempSize = orig.b - orig.a;
  this->a = 0;
  this->b = 0;
  this->c = 0;
  
  tempData = tempSize / 48;
  
  ptr = new StepGroup[tempData];
  this->a = ptr;
  this->b = ptr;
  this->c = ptr;
  this->b = (StepGroup*)std::copy(orig.a, orig.b, &a3);
  a4 = tempData;
  
  this->d = orig.d;
  this->e = orig.e;
  
}

